const express = require('express');
const router = express.Router();

const arr = ['秃驴','猴子','猪妖','水怪'];
const sign = '';
const content="<h1 style='text-align:center'>文章标题</h1>";
router.get('/home',(req,res)=>{
    res.render('index',{
        arr,
        sign,
        content
    })
})

router.post('/home',(req,res)=>{
    res.send('我是home页，post请求')
})

module.exports = router;